/**
 * 
 */
package org.cuatrovientos.imc;

import java.util.Scanner;

/**
 * @author Javi Basallo
 *
 */
public class Imc {

	/** a program that shows the Imc
	 * @param args
	 */
	public static void main(String[] args) {
		
		String weight, height = "";
		float kg, cm, operation = 0;
		Scanner reader = new Scanner (System.in);
		
		
		System.out.println("Enter your weight in kg: ");
		weight=reader.nextLine();
				
		System.out.println("Enter your height in meters: ");
		height=reader.nextLine();
		
		kg= Float.parseFloat(weight);
		cm= Float.parseFloat(height);
		
		
		operation = kg / (cm*cm);
		
		System.out.println("Your Imc is:" + operation);
		
		if (operation<=16){
			System.out.println("You have to eat more!");
			}

		else if (operation <=25) {
			System.out.println("You are hot :D");
			}
		else if (operation <=30){
			System.out.println("Take care of yourself, go for a walk");
      }
		else if (operation >30) {
			System.out.println("Go to the hospital...");
		  }
	}
	

	}


